package net.googlecode.exigenlab.task3.personal;

/**
 * Class for creating Manager and adding specific information
 * 
 * @author Poddybniak Petr <a href="mailto:PPoddybniak@gmail.com">Poddybniak
 *         Petr</a>
 * @since 28.03.2011
 */
public class Manager extends Worker {
	/**
	 * Default constructor.
	 * 
	 */
	public Manager() {
		super();
		this.setPost("Manager");
	}

	/**
	 * Constructo, wich create instance of class <code>Employee</code>
	 * 
	 * @param firstName
	 *            name of manager
	 * @param lastName
	 *            the last name of manager
	 * 
	 */
	public Manager(final String firstName, final String lastName) {
		super(firstName, lastName);
		this.setPost("Manager");
	}

	/**
	 * Set schedule of the manager
	 * 
	 * @param perHour
	 *            if true - hourly pay, false - fixed rate;
	 */
	public void setPerHour(boolean perHour) {
		this.perHour = perHour;
	}

	/**
	 * Set a bonus of manager
	 * 
	 * @param bonus
	 *            true - bonus issue, false - no bonus;
	 */
	public void setBonus(boolean bonus) {
		this.bonus = bonus;
	}
}
